

public class Triangle {

	public static void main(String args[]){
		
		if(args == null || args.length != 4){
			System.out.print("Usage: Triangle <command> a b c\n");
			return;
		}
		
		float a,b,c;
		
		a = Float.parseFloat(args[1]);
		b = Float.parseFloat(args[2]);
		c = Float.parseFloat(args[3]);
		
		if(a >= 1.0E30 || b >= 1.0E30 || c >= 1.0E30){
			System.out.print("Usage: Triangle <command> a b c\na b c < 10E30\n");
			return;
		}
		
		if(a <=  0 || b <= 0 || c <= 0){
			System.out.print("Usage: Triangle <command> a b c\na b c > 0\n");
			return;
		}
		
		System.out.print("Usage: Triangle <command> a b c\n" +
				"<command> must be either type, class, or angles\n");
	}
	
	public static boolean isTriangle(float a, float b, float c){
		
		if(a > b+c || a < Math.abs(b-c))
			return false;
		if(b > a+c || b < Math.abs(a-c))
			return false;
		if(c > b+a || c < Math.abs(b-a))
			return false;
		return true;
	}

}
